Set build script env vars correctly
authorAlex Crichton <alex@alexcrichton.com>
Wed, 11 Feb 2015 05:03:31 +0000 (21:03 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 18 Feb 2015 15:51:48 +0000 (07:51 -0800)
commitf91bc16546ec7eccfb47025768e92152367e5f44
tree947f79e93747d1ee1d68a39b0be4cb983b4d980e
parent918a415ef36a556af671159597d9b5fac3d8a479
Set build script env vars correctly

Previously the build script's profile was used instead of the target's build
script, causing the wrong environment variables to get set.

Closes #1058
src/cargo/ops/cargo_rustc/custom_build.rs
tests/test_cargo_compile_custom_build.rs